<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/*
  | -------------------------------------------------------------------------
  | URI ROUTING
  | -------------------------------------------------------------------------
  | This file lets you re-map URI requests to specific controller functions.
  |
  | Typically there is a one-to-one relationship between a URL string
  | and its corresponding controller class/method. The segments in a
  | URL normally follow this pattern:
  |
  |	example.com/class/method/id/
  |
  | In some instances, however, you may want to remap this relationship
  | so that a different class/function is called than the one
  | corresponding to the URL.
  |
  | Please see the user guide for complete details:
  |
  |	http://codeigniter.com/user_guide/general/routing.html
  |
  | -------------------------------------------------------------------------
  | RESERVED ROUTES
  | -------------------------------------------------------------------------
  |
  | There area two reserved routes:
  |
  |	$route['default_controller'] = 'welcome';
  |
  | This route indicates which controller class should be loaded if the
  | URI contains no data. In the above example, the "welcome" class
  | would be loaded.
  |
  |	$route['404_override'] = 'errors/page_missing';
  |
  | This route will tell the Router what URI segments to use if those provided
  | in the URL cannot be matched to a valid route.
  |
 */
$route['404_override'] = '';
$route['default_controller'] = "default/index/index";
$route['authencation'] = "default/index/authcode";
$route['like'] = 'default/other/facebooklike';
$route['facebook-connect'] = 'default/index/sharefbajax';
$route['facebook-connect-auto'] = 'default/index/sharefbajaxauto';
$route['insert-like-fb'] = 'default/index/insertlikefb';
$route['check-like'] = 'default/index/checklike';
$route['get-list-job'] = 'default/index/getlistjob';
$route['campaign-view-banner-ads'] = 'default/index/campaignviewbannerads';
$route['insert-log-access'] = 'default/index/insertlogaccess';

// 1. chiến dịch like fanpage facebook 
$route['campaign-like-fanpage-facebook'] = 'default/index/campaignlikefanpagefacebook';
// 2. chiến dịch share link facebook
$route['campaign-share-link-facebook'] = 'default/index/campaignsharelinkfacebook';
// 3. truy cập website
$route['campaign-visit'] = 'default/index/visit';
// 4.Xem ảnh/banner quảng cáo
$route['campaign-free'] = 'default/index/free';
// 5.Xem video quảng cáo
$route['campaign-video'] = 'default/index/video';
// 6.cài đặt ứng dụng
$route['campaign-download'] = 'default/index/download';
// 7.thu thập ý kiến khách hàng
$route['campaign-survey'] = 'default/index/survey';
// 8 thu thập email khách hàng
$route['campaign-email'] = 'default/index/email';
// 9 số DT
$route['campaign-phone'] = 'default/index/phone';
$route['campaign-wifipassword'] = 'default/index/wifipassword';

// log error
$route['campaign-default'] = 'default/index/campaigndefault';

$route['check-facebooklike'] = 'default/index/checkfacebooklike';
$route['check-email'] = 'default/index/checkemail';
$route['check-phone'] = 'default/index/checkphone';
$route['check-wifipassword'] = 'default/index/checkwifipassword';
// Check time phiên làm việc
$route['check-time-sesion'] = 'default/index/checktimesesion';

// check coupon
$route['check-coupon'] = 'default/index/checkcoupon';
// save campaign coupon 
$route['campaign-coupon'] = 'default/index/campaigncoupon';

// save campaign coupon send SMS 
$route['campaign-coupon-send-sms'] = 'default/index/campaigncouponsendsms';

// save campaign gift coupon 
$route['campaign-gift-coupon'] = 'default/index/campaigngiftcoupon';

//campaign share fanpage (check-in Photo)
$route['savefile'] = 'default/index/savefiletoclient';

// save campaign send gift coupon 
$route['campaign-send-gift-coupon'] = 'default/index/campaignsendgiftcoupon';

// sync get coupon wicard to wicity
$route['sync-get-coupon'] = 'default/index/syncgetcoupon';

/* End of file routes.php */
/* Location: ./application/config/routes.php */